package Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-07-10
 * Time: 10:03
 */
public class Test {
    public static void main(String[] args) {
        SingleLinkedList list = new SingleLinkedList();
    }
    public static void main4(String[] args) {
        SingleLinkedList list = new SingleLinkedList();
        list.addLast(3);
        list.addLast(3);
        list.addLast(3);
        list.addLast(3);
        list.addLast(3);
        list.display();
        list.clear();
        list.display();
    }
    public static void main3(String[] args) {
        SingleLinkedList list = new SingleLinkedList();
        list.addLast(1);
        list.addLast(2);
        list.addLast(3);
        list.addLast(4);
        list.addLast(5);
        list.display();
        list.remove(1);
        list.display();
    }
    public static void main2(String[] args) {
        SingleLinkedList list = new SingleLinkedList();
        list.addLast(1);
        list.addLast(2);
        list.addLast(3);
        list.addLast(4);
        list.addLast(5);
        list.display();
        list.addIndex(2,99);
        list.addIndex(800,1000);
        list.addIndex(6,888);
        list.display();
    }
    public static void main1(String[] args) {
        SingleLinkedList list = new SingleLinkedList();
//        list.createNode();
        list.display();
//        System.out.println(list.size());
//        System.out.println(list.contains(560));
//        list.addFirst(999);
//        list.addLast(999);
        list.display();

    }
}
